import request from '@/utils/request'

// 查询评议列表(大屏)
export function reviewBigList(query) {
  return request({
    url: '/partybuilding/DataStat/reviewList',
    method: 'get',
    params: query
  })
}

// 查询评议列表
export function listReview(query) {
  return request({
    url: '/partybuilding/Review/list',
    method: 'get',
    params: query
  })
}

// 查询评议详细
export function getReview(id) {
  return request({
    url: '/partybuilding/Review/' + id,
    method: 'get'
  })
}

// 新增评议
export function addReview(data) {
  return request({
    url: '/partybuilding/Review/add',
    method: 'post',
    data: data
  })
}

// 修改评议
export function updateReview(data) {
  return request({
    url: '/partybuilding/Review/edit',
    method: 'post',
    data: data
  })
}

// 删除评议
export function delReview(id) {
  return request({
    url: '/partybuilding/Review/remove/' + id,
    method: 'post'
  })
}

// 互评列表
export function myReviewUsers(query) {
  return request({
    url: '/partybuilding/ReviewUser/myReviewUsers',
    method: 'get',
    params: query
  })
}

// 查询支部评议列表
export function listStat(query) {
  return request({
    url: '/partybuilding/ReviewUser/listStat',
    method: 'get',
    params: query
  })
}

// 查询评定结果列表
export function reviewResultStat(query) {
  return request({
    url: '/partybuilding/ReviewUser/reviewResultStat',
    method: 'get',
    params: query
  })
}

// 互评
export function comment(data) {
  return request({
    url: '/partybuilding/ReviewUser/comment',
    method: 'post',
    data: data
  })
}

// 支部评定
export function orgComment(data) {
  return request({
    url: '/partybuilding/ReviewUser/orgComment',
    method: 'post',
    data: data
  })
}